package fr.esipe.eioc3.timetableontime_v2;

import android.app.ListActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class SelectFormation extends ListActivity{
	
	private static final String[] GENRES = new String[] {"EIOC1", "EIOC2","EIOC3",
		"MFPI1", "MFPI2","MFPI3","GM1","GM2","GM3","GC1","GC2","GC3","IR1", "IR2", "IR3"};

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_single_choice, GENRES));        
        final ListView listView = getListView();        
        listView.setItemsCanFocus(true);        
        listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); 
        
        Log.d("ici",listView.getOnItemClickListener().toString());
			
	
	}

}
